#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2023/3/20 16:21
# @Author : 闫峰
# @File    : read_text.py
import json

def get_tuple():
    with open("D:\pythonspace\cloudsky_test\sellsku.txt",mode="r",encoding='utf-8') as f:

        # while True:
        #     if len(f.readline()) == 0:
        #         break
        #     else:
        #         res = f.readline()
        #         print(res)
        data = f.readlines()
        res_set = set()
        for i in data:

            # res_set.add(i.strip("\n"))
            res_set.add(i.strip("\n"))

        return tuple(res_set)


if __name__ == '__main__':
    data_tuple = get_tuple()
    # data_int = list(map(int,data_tuple))
    # print(data_tuple)
    print(data_tuple)
    print(",".join(data_tuple))
